<section class="content-header">
	<h1>
		{{title}}<small></small>
	</h1>
</section>
<section class="content">
	<div class="box box-default">
		<div class="col-md-12">
			<div class="box-body" ng-controller="member">
				<alertdanger></alertdanger>
				<alertsuccess></alertsuccess>
				<form role="form">
					<div class="box-body">
						<div class="form-group">
							<label>登陆用户名</label> <input maxlength="20" required="required"
								ng-model="loginname" class="form-control" type="text"
								placeholder="请输入登陆用户名" value="">
						</div>
						<div class="form-group">
							<label>登陆密码</label> <input maxlength="20" required="required"
								ng-model="loginpwd" class="form-control" type="password"
								placeholder="请输入登陆密码" value="">
						</div>
						<div class="form-group">
							<label>昵称</label> <input maxlength="20" required="required"
								ng-model="nick" class="form-control" type="text"
								placeholder="请输入昵称" value="">
						</div>
						<div class="form-group" ng-init="findAllMemberGroup();">
							<label>会员分组名称</label> <select class="form-control select"
								ng-model="g.membergroup"
								ng-options="mg.id as mg.name for mg in membergroupselect">
								<option value="">----- 请选择分组名称 -----</option>
							</select>
						</div>
						<div class="form-group" ng-init="findAllMemberGrade();">
							<label>会员等级选择</label> <select class="form-control membergrade"
								ng-model="membergrade"
								ng-options="mgt.id as mgt.name for mgt in membergradelist">
								<option value="">----- 请选择会员等级 -----</option>
							</select>
							<!-- <div class="control">
								<label ng-repeat="mgt in membergradelist"> <input
									type="radio" ng-model="membergrade" ng-value="2"
									class="flat-red" ng-checked="true">{{mgt.name}}&nbsp;&nbsp;&nbsp;
								</label>
							</div> -->
						</div>
						<div class="form-group">
							<label>真实姓名</label> <input maxlength="20" required="required"
								ng-model="realname" class="form-control" type="text"
								placeholder="请输入真实姓名" value="">
						</div>
						<div class="form-group">
							<label>地址管理</label>
							<div class="control">
								<select class="col-xs-3 province" ng-model="address.province"
									ng-options="key as key for (key,value) in division"
									ng-change="address.city='';address.district='';">
									<option value="">省</option>
								</select> <select class="col-xs-3 city" ng-model="address.city"
									ng-options="key as key for (key,value) in division[address.province]"
									ng-change="address.district='';">
									<option value="">市</option>
								</select> <select class="col-xs-3 district" ng-model="address.district"
									ng-options="value as value for value in division[address.province][address.city]">
									<option value="">区</option>
								</select>
							</div>
						</div>
						<div class="form-group">
							<label>性别</label>
							<div class="control">
								<label> <input type="radio" ng-model="sex" ng-value="0"
									class="flat-red" ng-checked="true">保密&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="sex" ng-value="1"
									class="flat-red">男&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="sex" ng-value="2"
									class="flat-red">女
								</label>
							</div>
						</div>
						<div class="form-group">
							<label>性取向</label>
							<div class="control">
								<label> <input type="radio" ng-model="whichsex"
									ng-value="0" class="flat-red" ng-checked="true">保密&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="whichsex"
									ng-value="1" class="flat-red">男&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="whichsex"
									ng-value="2" class="flat-red">女
								</label>
							</div>
						</div>
						<div class="form-group">
							<label>婚姻状态</label>
							<div class="control">
								<label> <input type="radio" ng-model="merrystatus"
									ng-value="0" class="flat-red" ng-checked="true">保密&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="merrystatus"
									ng-value="1" class="flat-red">已婚&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="merrystatus"
									ng-value="2" class="flat-red">未婚
								</label>
							</div>
						</div>
						<div class="form-group">
							<label>生日</label> <input maxlength="20" required="required"
								ng-model="birthday" class="form-control" type="text"
								placeholder="请输入生日" value="">
						</div>
						<div class="form-group">
							<label>血型</label>
							<div class="control">
								<label> <input type="radio" ng-model="blood"
									ng-value="0" class="flat-red" ng-checked="true">保密&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="blood"
									ng-value="1" class="flat-red">A&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="blood"
									ng-value="2" class="flat-red">B&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="blood"
									ng-value="3" class="flat-red">O&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="blood"
									ng-value="4" class="flat-red">AB
								</label>
							</div>
						</div>
						<div class="form-group">
							<label>星座</label>
							<div class="control">
								<label> <input type="radio" ng-model="constellation"
									ng-value="0" class="flat-red" ng-checked="true">保密&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="1" class="flat-red">白羊座&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="2" class="flat-red">金牛座&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="3" class="flat-red">双子座&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="4" class="flat-red">巨蟹座&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="5" class="flat-red">狮子座&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="6" class="flat-red">处女座&nbsp;&nbsp;&nbsp;
								</label><label> <input type="radio" ng-model="constellation"
									ng-value="7" class="flat-red">天秤座&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="8" class="flat-red">天蝎座&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="9" class="flat-red">射手座&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="10" class="flat-red">摩羯座&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="11" class="flat-red">水瓶座&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="constellation"
									ng-value="12" class="flat-red">双鱼座
								</label>
							</div>
						</div>
						<div class="form-group">
							<label>自我介绍</label> <input maxlength="20" required="required"
								ng-model="des" class="form-control" type="text"
								placeholder="请输入自我介绍" value="">
						</div>
						<div class="form-group">
							<label>邮箱</label> <input maxlength="20" required="required"
								ng-model="email" class="form-control" type="text"
								placeholder="请输入邮箱" value="">
						</div>
						<div class="form-group">
							<label>QQ</label> <input maxlength="20" required="required"
								ng-model="qq" class="form-control" type="text"
								placeholder="请输入QQ" value="">
						</div>
						<div class="form-group">
							<label>微信</label> <input maxlength="20" required="required"
								ng-model="weixin" class="form-control" type="text"
								placeholder="请输入微信" value="">
						</div>
						<div class="form-group">
							<label>sina微博</label> <input maxlength="20" required="required"
								ng-model="sinaweibo" class="form-control" type="text"
								placeholder="请输入sina微博" value="">
						</div>
						<div class="form-group">
							<label>个人标签</label> <input maxlength="20" required="required"
								ng-model="tag" class="form-control" type="text"
								placeholder="请输入个人标签" value="">
						</div>
						<div class="form-group">
							<label>手机号</label> <input maxlength="20" required="required"
								ng-model="mobile" class="form-control" type="text"
								placeholder="请输入手机号" value="">
						</div>
						<div class="form-group">
							<label>固定电话</label> <input maxlength="20" required="required"
								ng-model="telno" class="form-control" type="text"
								placeholder="请输入固定电话" value="">
						</div>
						<div class="form-group">
							<label>用户状态</label>
							<div class="control">
								<label> <input type="radio" ng-model="memberstate"
									ng-value="0" class="flat-red" ng-checked="true">未激活&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="memberstate"
									ng-value="1" class="flat-red">激活&nbsp;&nbsp;&nbsp;
								</label> <label> <input type="radio" ng-model="memberstate"
									ng-value="2" class="flat-red">锁定
								</label>
							</div>
						</div>
						<div ng-show="visible.show">
							<div class="form-group">
								<label>被喜欢次数</label> <input maxlength="20" required="required"
									ng-model="belove" class="form-control" type="text"
									placeholder="请输入真实姓名" value="">
							</div>
							<div class="form-group">
								<label>喜欢别人次数</label> <input maxlength="20" required="required"
									ng-model="loveother" class="form-control" type="text"
									placeholder="请输入真实姓名" value="">
							</div>
							<div class="form-group">
								<label>发布信息数</label> <input maxlength="20" required="required"
									ng-model="postingcount" class="form-control" type="text"
									placeholder="请输入真实姓名" value="">
							</div>
							<div class="form-group">
								<label>积分</label> <input maxlength="20" required="required"
									ng-model="integration" class="form-control" type="text"
									placeholder="请输入真实姓名" value="">
							</div>
							<div class="form-group">
								<label>头像路径</label> <input maxlength="20" required="required"
									ng-model="headpath" class="form-control" type="text"
									placeholder="请输入真实姓名" value="">
							</div>
							<div class="form-group">
								<label> <input type="radio" ng-model="status"
									ng-value="1" class="flat-red" ng-checked="true"> 启用
								</label> <label> <input type="radio" ng-model="status"
									ng-value="0" class="flat-red"> 禁用
								</label>
							</div>
						</div>
					</div>
					<div class="box-footer">
						<button ng-show="savebtn.show" type="button"
							class="btn btn-primary" ng-click="save();">保存</button>
						<button ng-show="updatebtn.show" type="button"
							class="btn btn-primary" ng-click="update();">更新</button>
					</div>
				</form>
			</div>
		</div>
		<div class="box-footer"></div>
	</div>
</section>
<script>
	$(function() {
		$(".select").select2();
		$(".membergrade").select2();
		$(".province").select2();
		$(".city").select2();
		$(".district").select2();
	});
</script>